Installation
This guide explains how to install dotenv-gad in your Node.js or TypeScript project.
Requirements
- Node.js ≥ 18
- npm, yarn, or pnpm
Install dotenv-gad using your preferred package manager:
- npm
- yarn
- pnpm
npm install dotenv-gad
yarn add dotenv-gad
pnpm add dotenv-gad
Verify Installation
After installation, verify that the package is available:
npx dotenv-gad --help
You should see the list of available CLI commands.
What's included
dotenv-gad— core library (loadEnv,EnvValidator,defineSchema,composeSchema)dotenv-gad/vite— Vite plugin for build-time validation and client-safe env filteringdotenv-gad/client— typed client entry point for Vite projects- CLI (
npx dotenv-gad) — check, sync, types, init, fix, docs commands